package com.sunwayhorizo.health.hl7.persistent.pk;

import java.io.Serializable;

public class RimCoreEntyQtysPK implements Serializable {
    public Long entityId;
    public Long entityQtyId;
    public Long entityVersionNum;

    public RimCoreEntyQtysPK() {
    }

    public RimCoreEntyQtysPK(Long entityId, Long entityQtyId, Long entityVersionNum) {this.entityId = entityId;
        this.entityQtyId = entityQtyId;
        this.entityVersionNum = entityVersionNum;
    }

    public boolean equals(Object other) {
        if (other instanceof RimCoreEntyQtysPK) {
            final RimCoreEntyQtysPK otherRimCoreEntyQtysPK = (RimCoreEntyQtysPK) other;
            final boolean areEqual = 
                (otherRimCoreEntyQtysPK.entityId.equals(entityId) && otherRimCoreEntyQtysPK.entityQtyId.equals(entityQtyId) && otherRimCoreEntyQtysPK.entityVersionNum.equals(entityVersionNum));
            return areEqual;
        }
        return false;
    }

    public int hashCode() {
        return super.hashCode();
    }
}
